function [posit_x] = middlex(x,best)
    M=max(abs(x-best));
    posit_x = 1 - abs(x-best) / M;
end